package com.lili.core.util;

public class MyBeanUtil {

	public static boolean isNumber(String str) {
		if (str == null) {
			return false;
		}
		try {
			Integer.parseInt(str);
			return true;
		} catch (Exception e) {
			return false;
		}

	}

	public static int getInt(String str) {
		if (str == null) {
			return 0;
		}
		try {
			int num = Integer.parseInt(str);
			return num;
		} catch (Exception e) {
			return 0;
		}

	}

}
